<?php
/**
 * Created by PhpStorm.
 * User: yadongw
 * Date: 15-5-26
 * Time: 下午7:46
 */
use UcxApiSdk\Client;
include 'common.php';

$client = new Client();
$client->setAccessToken($_COOKIE['ucx_access_token']);
$documentResource = $client->getDocument();
var_dump($_GET);
$share_id = $_GET['sid'];
try{
	$documentResource->deleteShare($share_id);
}catch(Exception $e){

}
header("location:index.php");
?>